package org.tlipoca.smsteamcategory.controller;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.apiguardian.api.API;
import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.entity.SteamCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.tlipoca.smsteamcategory.service.SteamCategoryService;

import java.util.ArrayList;

@Tag(name = "Steam分类")
@Slf4j
@RestController
@RequestMapping("/steam_category")
public class SteamCategoryController {

    @Autowired
    private SteamCategoryService steamCategoryService;

    @GetMapping("/list")
    @Operation(summary = "获取Steam分类列表")
    public Result<ArrayList<SteamCategory>> getSteamCategoryList() {
        return Result.success(steamCategoryService.getSteamCategoryListService());
    }



}
